import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './styles'
import App from './App.vue'
import router from './router'
import store from './store'
import './permission'
import request from './utils/request'
import {
  formatDate,
  formatPhone,
  formatNumber,
  convertMoney
} from './utils/format'

Vue.config.productionTip = false
Vue.use(ElementUI)

Vue.prototype.$http = request

Vue.filter('formatDate', formatDate)
Vue.filter('formatPhone', formatPhone)
Vue.filter('formatNumber', formatNumber)
Vue.filter('convertMoney', convertMoney)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
